package com.ddd.domain;


import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ResponseResult <T> implements Serializable {

    private Integer code;

    private String msg;

    private T data;

    public ResponseResult(Integer code, String msg )
    {
        this.code = code;
        this.msg = msg;
    }

    public ResponseResult(Integer code,  T data ){
        this.code = code;
        this.data = data;
    }

    public ResponseResult(Integer code, String msg, T data ){
        this.code = code;
        this.msg = msg;
        this.data = data;
    }
    public ResponseResult(){}
}
